package com.sike.exception;
import org.springframework.core.NestedRuntimeException;

/**
 * @company sikejiaoyu
 * 
 * 类功能:系统运行时统一对外抛出的异常
 * 
 * <p>
 * 创建者:zza 创建时间:
 * </p>
 * 

 * 
 * <p>
 * 修改者:
 * </p>
 * 
 * <p>
 * 修改时间:
 * </p>
 * 
 * <p>
 * 修改原因：
 * </p>
 * 
 * <p>
 * 审核者:
 * </p>
 * 
 * <p>
 * 审核时间:
 * </p>
 * 
 * <p>
 * 审核意见：
 * </p>
 * 
 */
public class BaseException extends NestedRuntimeException {

	private static final long serialVersionUID = 1L;
	// 异常代码
	private String errCode;

	public BaseException(String errCode, String msg) {
		super(msg);
		this.errCode = errCode;
	}

	public BaseException(String errCode, String msg, Throwable cause) {
		super(msg, cause);
		this.errCode = errCode;
	}

	public String getErrCode() {
		return errCode;
	}

	public void setErrCode(String errCode) {
		this.errCode = errCode;
	}

	public BaseException(String msg, Throwable cause) {
		super(msg, cause);
	}

	public BaseException(String msg) {
		super(msg);
	}
}
